package com.xgimi.open.skill.datamanager.service.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xgimi.base.BaseQueryRQ;
import com.xgimi.open.skill.datamanager.service.response.constants.DateConstant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author coderzpw.zhang
 * @version 1.0
 * @description 描述
 * @date 2023/2/8 14:48
 */
@Data
public class SkillVersionReqDTO extends BaseQueryRQ implements Serializable {

    private static final long serialVersionUID = 3800349984086441676L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * skill表外键
     */
    @NotNull(message = "技能id不能为空！")
    private Long skillId;

    /**
     * 发布介绍
     */
    @NotBlank(message = "发布介绍不能为空！")
    private String publishDesc;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 发布人
     */
    private String publishedBy;

    /**
     * 发布时间
     */
    @DateTimeFormat(pattern = DateConstant.PATTERN)
    @JsonFormat(pattern = DateConstant.PATTERN, timezone = "GMT+8")
    private Date publishedAt;

    /**
     * business业务id
     */
    private String businessId;

    /**
     * 数据版本
     */
    private Integer updateVersion;
}
